<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" >
<!-- th:fragment 定义需要引入的代码块，该div包含的内容即为引用的公共内容 -->
<!-- html底部 -->
<div th:fragment="script">
    <link href="../admin/vendor/fontawesome-free/css/all.min.css" rel="stylesheet" type="text/css">
    <link href="../admin/css/mycss.css" rel="stylesheet">
    <link href="../admin/css/sb-admin-2.min.css" rel="stylesheet">
    <script src="../admin/vendor/jquery/jquery.min.js"></script>
    <script src="../admin/vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
    <script src="../admin/vendor/jquery-easing/jquery.easing.min.js"></script>
    <script src="../admin/js/sb-admin-2.min.js"></script>
    <script src="../admin/vendor/chart.js/Chart.min.js"></script>
    <script src="../admin/js/demo/chart-area-demo.js"></script>
    <script src="../admin/js/demo/chart-pie-demo.js"></script>
    <!-- 时间选择器控件 -->
    <link href="../css/bootstrap-datetimepicker.css" rel="stylesheet">
    <script src="../js/bootstrap-datetimepicker.js"></script>
    <script src="../js/bootstrap-datetimepicker.zh-CN.js"></script>

    <script type="application/javascript">
        $.ajaxSetup({
            beforeSend: function () {
                // 显示loading.gif
                document.getElementById("loading").style.display = "";
            },
            complete: function () {
                // 隐藏loading.gif
                document.getElementById("loading").style.display = "none";
            },
            error: function () {
                // 隐藏loading.gif
                document.getElementById("loading").style.display = "none";
                // ajax请求失败
                alert("操作失败");
            }
        });
    </script>

    <style>
        #loading{
            position:absolute;
            width:500px;
            height:50px;
            top:50%;
            left:50%;
            margin: -25px -150px;
            background-color:#FFFFFF;
            border:1px solid #CCCCCC;
            text-align:center;
            padding:20px;
            color:#ffffff
        }

        .set-min-height{
            min-height: 100%;
        }
    </style>
</div>
</html>